<template>
  <div class="box">
    <el-form-item label="形状">
      <el-select v-model="legend.icon">
        <el-option label="圆点" value="circle"></el-option>
        <el-option label="矩形" value="rect"></el-option>
        <el-option label="圆角矩形" value="roundRect"></el-option>
        <el-option label="三角形" value="triangle"></el-option>
        <el-option label="菱形" value="diamond"></el-option>
        <el-option label="别针" value="pin"></el-option>
        <el-option label="箭头" value="arrow"></el-option>
        <el-option label="无" value="none"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="宽度">
      <el-input-number v-model="legend.itemWidth" :max="99" :min="0" :step="1">
      </el-input-number>
    </el-form-item>
    <el-form-item label="高度">
      <el-input-number v-model="legend.itemHeight" :max="99" :min="0" :step="1">
      </el-input-number>
    </el-form-item>
  </div>
</template>

<script>
export default {
  name: "LegendIcon",
  inject: ["father"],
  computed: {
    legend: {
      get() {
        return this.father.echartsOptions.legend;
      },
      set(val) {
        this.father.echartsOptions.legend = val;
      },
    },
  },
  mounted() {},
  methods: {},
};
</script>

<style scoped>
</style>